<template>
	<view class="address-area">
		<slot name="radio"></slot>
		<view class="right">
			<view class="block">
				<view class="person-info">
					<text class="name">{{ username }}</text>
					<text class="tel">{{ tel }}</text>
				</view>
				<view class="address-detail">
					{{ address }}
				</view>
			</view>
			<slot name="icon"></slot>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			// 收件人姓名
			username: {
				type: String,
				required: true
			},
			// 收件人电话
			tel: {
				type: [String, Number],
				required: true
			},
			// 收件人地址信息
			address: {
				type: String,
				required: true
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style>
	.address-area {
		display: flex;
		justify-content: space-around;
		align-items: center;
		height: 100rpx;
	}
	
	.right {
		width: 80%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	
	.block {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	
	.person-info {
		width: 100%;
	}
	
	.tel {
		font-size: 28rpx;
		color: gray;
		margin-left: 20rpx;
	}
	
	.address-detail {
		font-size: 28rpx;
	}
</style>
